package com.oak.interviewdemo.utils.page;


/**
 * 返回数据
 */
public enum PageStatus {

    SUCCESS("SUCCESS", "查询成功"),
    EMPTY("EMPTY", "未查询到数据"),
    ERROR("ERROR", "查询失败"),
    LOGIN_ERROR("LOGIN_ERROR", "用户名或密码错误"),
    LOGIN_SUCCESS("LOGIN_SUCCESS", "登录成功"),
    LOGIN_ERROR_403("403", "登录成功");

    private String code;
    private String message;

    PageStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
